using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace teatimer
{
    public partial class nice : Form
    {
        public nice(string par_text, Color col_forecolor, Color col_backcolor, int transparenz)
        {
            InitializeComponent();
            label2.Text = par_text;
            label1.ForeColor = col_forecolor;
            label2.ForeColor = col_forecolor;
            this.BackColor = col_backcolor;
            this.Opacity = (double)transparenz / 100;
        }

        private void nice_Load(object sender, EventArgs e)
        {
            label1.Left = this.Width / 2 - label1.Width / 2;
            label2.Left = this.Width / 2 - label2.Width / 2;
        }

    }
}